<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>赚钱吧-苹果试玩平台</title>
    <script src="https://ksc.cdn.tj.asm8.com/WeChatMinApp%2Ftry_play%2FAndroid%2Fgeneralize%2Fflexible.js"></script>
</head>
<body>

		<div class="content_wrap">
			<div class="marquee-wrap" id="marquee-wrap">
		       <ul>
					<li><img src="https://zhuanqianba.oss-cn-qingdao.aliyuncs.com/loadpic/1.png" alt="" width="600" height="85"></a></li>
					<li><img src="https://zhuanqianba.oss-cn-qingdao.aliyuncs.com/loadpic/2.png" alt="" width="600" height="85"></a></li>
					<li><img src="https://zhuanqianba.oss-cn-qingdao.aliyuncs.com/loadpic/3.png" alt="" width="600" height="85"></a></li>
					<li><img src="https://zhuanqianba.oss-cn-qingdao.aliyuncs.com/loadpic/4.png" alt=""  width="600" height="85"></a></li>
					<li><img src="https://zhuanqianba.oss-cn-qingdao.aliyuncs.com/loadpic/5.png" alt=""  width="600" height="85"></a></li>
		     </ul>
	     </div>


        <div class="bottom_content">
            <div class="btn_wrap">
                <div class="btn" onclick="onBtn()"></div>
            </div>
        </div>



    </div>

    <div id="modal-mask" class="modal-mask modal-mask-wx-lo" style="display: none;" onclick="coloseModal()">
        <img class="wx-lo-tip" src="https://ksc.cdn.tj.asm8.com/WeChatMinApp%2Ftry_play%2FAndroid%2Fgeneralize%2Flo_ios.png" alt="">
    </div>
</body>

<style>
    body{
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100vh;
    }

    .content_wrap{
        width: 10rem;
        height: 100vh;
		background: url("https://zhuanqianba.oss-cn-qingdao.aliyuncs.com/loadpic/load.jpg") no-repeat center;
		background-size: 100% 100%;
    }

    .head_content_text{
        width: 8rem;
        margin-top: 0.6rem;
        margin-left: 0.6rem;
        font-size: 0.4rem;
        color: white;
        font-weight: 300;
    }

    .head_content_inset{
        width: 2.614rem;
        height: 3.466rem;
        position: absolute;
        right: 0;
        top: 2rem;
    }


    .btn_wrap{
        width: 10rem;
        display: flex;
        justify-content: center;
    }

    .btn{
       width: 7rem;
    height: 1.9rem;
    background: url("https://zhuanqianba.oss-cn-qingdao.aliyuncs.com/loadpic/btn.png") no-repeat center;
    background-size: 45%;
    position: absolute;
    top: 80%;
    }

    .modal-mask {
        width: 100vw;
        height: 100vh;
        position:fixed;
        top:0;
        left:0;
        right:0;
        background-color: rgba(0,0,0,0.8);;
        overflow: hidden;
        z-index: 9000;
        color: #fff;
    }

    .wx-lo-tip{
        width: 6.5rem;
        position: absolute;
        right: 0.2rem;
    }   
        .marquee-wrap{
            width: 65%;
			height: 85px;
			overflow: hidden;
			top:3%;
			position: absolute;
			margin-left:20%;
			margin-right:20%;
			border:1px solid #9AC8EC;
			background:#9AC8EC;
			border-radius:50px;
        }
        .marquee-wrap ul{
            position: absolute;
            left: 0;
            top: 0;
        }
        .marquee-wrap ul li{
            float: left;
            width: 600px;
            height: 80px;
			line-height: 80px;
            list-style: none;
			text-align: center;
        }
		li img {
        vertical-align: middle;
        }
        .marquee-wraps{
            position: relative;
        }
        .marquee-wraps a:first-child{
            position: absolute;
            left: 0;
            top: 75px;
            z-index: 10;
        }
        .marquee-wraps a:nth-child(2){
            position: absolute;
            right: 0;
            top: 75px;
            z-index: 10;
        }
    
</style>

<script>
    function onBtn(){
        if(is_weixn()){
            var modal = document.getElementById('modal-mask');
            modal.style.display = 'block';
        }else{
            var param = getParam()
            var url = "http://zhuanqianba.cn/#/?invitecode="+param.invite_code
            window.location.href = url
        }
    }

    function coloseModal() {
        var modal = document.getElementById('modal-mask');
        modal.style.display = 'none';
    }

    function is_weixn(){
        var ua = navigator.userAgent.toLowerCase();
        if(ua.match(/MicroMessenger/i)=="micromessenger") {
            return true;
        } else {
            return false;
        }
	
    }

    function getParam() {
        var url = location.search; //获取url中"?"符后的字串
        console.log("url",url)
        var theRequest = new Object();
        if (url.indexOf("?") != -1) {
            var str = url.substr(1);
            strs = str.split("&");
            for(var i = 0; i < strs.length; i ++) {
                theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
            }
        }
        return theRequest;
    }


	 window.onload=function(){
        var oDiv=document.getElementById('marquee-wrap');
 
        var oUl=document.getElementsByTagName('ul')[0];
        var aLi=document.getElementsByTagName('li');
        var speed=-2;
        oUl.innerHTML+=oUl.innerHTML;
        oUl.style.width=aLi[0].offsetWidth*aLi.length+'px';
        function marqueeFn(){
            if(oUl.offsetLeft<-oUl.offsetWidth/2){
                oUl.style.left='0';
            }
            if(oUl.offsetLeft>0){
                oUl.style.left=-oUl.offsetWidth/2+'px';
            }
            oUl.style.left=oUl.offsetLeft+speed+'px';
        }
        var timer=setInterval(marqueeFn,30);
        oDiv.onmouseover=function(){
            clearInterval(timer);
        };
        oDiv.onmouseout=function(){
            timer=setInterval(marqueeFn,30);
        };
     
    };

</script>